package com.example.shixun.utils;

public class GetQQImgUrl {
    public static String getQQNumberFromEmail(String email) {
        String qqNumber = "";
        int atIndex = email.indexOf('@');
        if (atIndex != -1) {
            qqNumber = email.substring(0, atIndex);
            qqNumber = qqNumber.replaceAll("\\D+","");
        }
        return "https://q1.qlogo.cn/g?b=qq&nk="+qqNumber+"&s=640";
    }
}
